<?php

// GNU [A]GPLv+3 here

include('putfilelist.php');
include('getfilelist.php');

header("Content-Type: text/plain");

if ( isset($_GET['action']) )
{
	if ( $_GET['action'] == 'putfilelist' ) { PutFileList(); } else
	if ( $_GET['action'] == 'getfilelist' ) { GetFileList(); }
	else { echo '404 No such action'; }
}
else
{
	echo '400 Usage: ?action=<Action>';
}

?>
